package com.cgwx.commonutils.math;

/**
 * @author GaoWei
 * @Date 2021/8/6 - 10:56
 */
public class ExpressionParseException extends RuntimeException
{
    private String descrip;
    private int index;

    public ExpressionParseException(String descrip, int index) {
        this.descrip = descrip;
        this.index = index;
    }

    public String getDescription()
    {
        return this.descrip;
    }

    public int getIndex()
    {
        return this.index;
    }

    public String toString()
    {
        return "(" + this.index + ") " + this.descrip;
    }
}
